package j05zuoye;

public class RectTest {
    public static void main(String[] args) {
        Rectangle r1 = new Rectangle(
                new Point(0,3),
                3,
                4
        );
        System.out.println(r1.area());
        System.out.println(r1.perimeter());
        r1.center().printInfo();
    }
}
